﻿<phone:PhoneApplicationPage 
    x:Class="MobiSms.Wasun.Views.UserManualView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:viewmodel="clr-namespace:MobiSms.ViewModel;assembly=MobiSms.ViewModel"
    xmlns:UX="clr-namespace:MobiSms.UX;assembly=MobiSms.UX"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait"  Orientation="Portrait"
    shell:SystemTray.IsVisible="False">
    
    <phone:PhoneApplicationPage.Resources>
        <Style TargetType="TextBlock">
            <Setter Property="TextWrapping" Value="Wrap"/>
        </Style>
    </phone:PhoneApplicationPage.Resources>

    <Grid x:Name="LayoutRoot">
        <Grid.Background>
            <ImageBrush ImageSource="{Binding GlobalSettings.BackgroundImage}" Stretch="{Binding GlobalSettings.BackgroundImageStretch}" />
        </Grid.Background>
        <Grid.DataContext>
            <viewmodel:UserManualViewModel/>
        </Grid.DataContext>
        
        <controls:Pivot Title="{StaticResource IDS_APP_NAME}">

            <controls:PivotItem Header="{StaticResource IDS_MANUAL_SERIAL}">
                <Grid>
                    <ScrollViewer>
                        <StackPanel>
                            <StackPanel>
                                <StackPanel Margin="12,0,0,0" Orientation="Horizontal">
                                    <UX:UXPathButton IconPath="{StaticResource PATH_ICON_REFRESH}" Width="36" Height="36" Padding="9"/>
                                    <TextBlock Style="{StaticResource PhoneTextTitle2Style}" Text="{StaticResource IDS_MANUAL_SERIAL_REFRESHBALANCE}"/>
                                </StackPanel>
                                <TextBlock Style="{StaticResource PhoneTextNormalStyle}" TextWrapping="Wrap">
                                    <Run Text="{StaticResource IDS_MANUAL_SERIAL_REFRESHBALANCE_LINE1}"/>
                                    <LineBreak/>
                                    <Run Text="{StaticResource IDS_MANUAL_SERIAL_REFRESHBALANCE_LINE2}"/>
                                </TextBlock>
                                <TextBlock Style="{StaticResource PhoneTextNormalStyle}" Text=" "/>
                            </StackPanel>
                            <StackPanel>
                                <StackPanel Margin="12,0,0,0" Orientation="Horizontal">
                                    <UX:UXPathButton IconPath="{StaticResource PATH_ICON_CLOSE}" Angle="45"  Width="36" Height="36" Padding="11"/>
                                    <TextBlock Style="{StaticResource PhoneTextTitle2Style}" Text="{StaticResource IDS_MANUAL_SERIAL_ADD}"/>
                                </StackPanel>
                                <TextBlock Style="{StaticResource PhoneTextNormalStyle}" Text="{StaticResource IDS_MANUAL_SERIAL_ADD_LINE1}" TextWrapping="Wrap"/>
                                <TextBlock Style="{StaticResource PhoneTextNormalStyle}" Text=" "/>
                            </StackPanel>
                            <StackPanel>
                                <StackPanel Margin="12,0,0,0" Orientation="Horizontal">
                                    <UX:UXPathButton IconPath="{StaticResource PATH_ICON_INVENTORY}" Width="36" Height="36" Padding="9"/>
                                    <TextBlock Style="{StaticResource PhoneTextTitle2Style}" Text="{StaticResource IDS_MANUAL_SERIAL_REGISTER}"/>
                                </StackPanel>
                                <TextBlock Style="{StaticResource PhoneTextNormalStyle}" TextWrapping="Wrap">
                                    <Run Text="{StaticResource IDS_MANUAL_SERIAL_REGISTER_LINE1}"/>
                                    <LineBreak/>
                                    <Run Text="{StaticResource IDS_MANUAL_SERIAL_REGISTER_LINE2}"/>
                                </TextBlock>
                                <TextBlock Style="{StaticResource PhoneTextNormalStyle}" Text=" "/>
                            </StackPanel>
                        </StackPanel>
                    </ScrollViewer>
                </Grid>
            </controls:PivotItem>

            <controls:PivotItem Header="{StaticResource IDS_MANUAL_HISTORY}">
                <Grid>
                    <ScrollViewer>
                        <StackPanel>
                            <TextBlock Style="{StaticResource PhoneTextNormalStyle}" Text="{StaticResource IDS_MANUAL_HISTORY_DESCRIPTION}" TextWrapping="Wrap"/>
                            <TextBlock Style="{StaticResource PhoneTextNormalStyle}" Text=" "/>
                            <StackPanel>
                                <StackPanel Margin="12,0,0,0" Orientation="Horizontal">
                                    <UX:UXPathButton IconPath="{StaticResource PATH_ICON_DOWN}" 
                                                     Width="36" Height="36" Padding="9"/>
                                    <TextBlock Style="{StaticResource PhoneTextTitle2Style}" 
                                               Text="{StaticResource IDS_MANUAL_HISTORY_LOADPREVIOUS}"/>
                                </StackPanel>
                                <TextBlock Style="{StaticResource PhoneTextNormalStyle}" TextWrapping="Wrap">
                                    <Run Text="{StaticResource IDS_MANUAL_HISTORY_LOADPREVIOUS_LINE1}"/>
                                    <LineBreak/>
                                    <Run Text="{StaticResource IDS_MANUAL_HISTORY_LOADPREVIOUS_LINE2}"/>
                                </TextBlock>
                                <TextBlock Style="{StaticResource PhoneTextNormalStyle}" Text=" "/>
                            </StackPanel>
                            <StackPanel>
                                <TextBlock Style="{StaticResource PhoneTextTitle2Style}" Text="{StaticResource IDS_MANUAL_HISTORY_SIGNAL}"/>
                                <TextBlock Style="{StaticResource PhoneTextNormalStyle}" Text=" "/>
                                <StackPanel Margin="12,0,0,0" Orientation="Horizontal">
                                    <Path Width="24" Height="24"
                                          Data="M-150.204,626.126C-152.317,626.126 -154.429,626.126 -156.541,626.126 -167.642,633.42 -180.629,646.047 -189.668,657.238 -190.916,658.782 -192.945,662.362 -193.701,662.422 -194.041,662.448 -198.024,659.719 -198.614,659.297 -202.818,656.279 -205.779,653.709 -209.257,650.899 -211.248,652.172 -212.879,653.805 -214.153,655.797 -206.627,665.074 -200.283,675.534 -193.124,685.18 -181.491,665.11 -168.473,644.683 -152.796,629.006 -151.735,627.946 -149.817,626.933 -150.204,626.126z"
                                          Fill="{StaticResource PhoneForegroundBrush}"
                                          RenderTransformOrigin="0.5,0.5"
                                          Stretch="Uniform">
                                        <Path.RenderTransform>
                                            <TransformGroup>
                                                <TransformGroup.Children>
                                                    <RotateTransform Angle="0" />
                                                    <ScaleTransform ScaleX="1" ScaleY="1" />
                                                </TransformGroup.Children>
                                            </TransformGroup>
                                        </Path.RenderTransform>
                                    </Path>
                                    <TextBlock Style="{StaticResource PhoneTextTitle3Style}" 
                                               Text="{StaticResource IDS_MANUAL_HISTORY_SIGNAL_SUCCEED}"/>
                                </StackPanel>

                                <TextBlock Style="{StaticResource PhoneTextNormalStyle}" Text=" "/>
                                
                                <StackPanel Margin="12,0,0,0" Orientation="Horizontal">
                                    <Path Width="24" Height="24"
                                          Data="M29.9314,44.295898 L34.223,44.295898 L34.223,48.585999 L29.9314,48.585999 z M29.749001,26.198 L34.390999,26.198 L34.390999,31.452 L33.290699,42.814499 L30.8636,42.814499 L29.749001,31.452 z M32,10.3389 L8.2226601,54.423698 L55.777302,54.423698 z M32,0 L48,29.666 L64,59.331001 L32,59.331001 L0,59.331001 L16,29.666 z"
                                          Fill="{StaticResource PhoneForegroundBrush}"
                                          RenderTransformOrigin="0.5,0.5"
                                          Stretch="Uniform">
                                        <Path.RenderTransform>
                                            <TransformGroup>
                                                <TransformGroup.Children>
                                                    <RotateTransform Angle="0" />
                                                    <ScaleTransform ScaleX="1" ScaleY="1" />
                                                </TransformGroup.Children>
                                            </TransformGroup>
                                        </Path.RenderTransform>
                                    </Path>
                                    <TextBlock Style="{StaticResource PhoneTextTitle3Style}" 
                                               Text="{StaticResource IDS_MANUAL_HISTORY_SIGNAL_FAILD}"/>
                                </StackPanel>
                            </StackPanel>
                            
                        </StackPanel>
                    </ScrollViewer>
                </Grid>
            </controls:PivotItem>

            <controls:PivotItem Header="{StaticResource IDS_MANUAL_COMPOSE}">
                <Grid>
                    <ScrollViewer>
                        <StackPanel>
                            <StackPanel>
                                <TextBlock Style="{StaticResource PhoneTextNormalStyle}" TextWrapping="Wrap">
                                    <Run Text="{StaticResource IDS_MANUAL_COMPOSE_DESCRIPTION_LINE1}"/>
                                    <LineBreak/>
                                    <Run Text="{StaticResource IDS_MANUAL_COMPOSE_DESCRIPTION_LINE2}"/>
                                    <LineBreak/>
                                    <Run Text="{StaticResource IDS_MANUAL_COMPOSE_DESCRIPTION_LINE3}"/>
                                    <LineBreak/>
                                    <Run Text="{StaticResource IDS_MANUAL_COMPOSE_DESCRIPTION_LINE4}"/>
                                </TextBlock>
                                <TextBlock Style="{StaticResource PhoneTextNormalStyle}" Text=" "/>
                            </StackPanel>

                            <StackPanel>
                                <StackPanel Margin="12,0,0,0" Orientation="Horizontal">
                                    <UX:UXPathButton IconPath="{StaticResource PATH_ICON_CONTACTBOOK}" 
                                                     Width="36" Height="36" Padding="9"/>
                                    <TextBlock Style="{StaticResource PhoneTextTitle2Style}" 
                                               Text="{StaticResource IDS_MANUAL_CONTACTBOOK}"/>
                                </StackPanel>
                                <TextBlock Style="{StaticResource PhoneTextNormalStyle}" TextWrapping="Wrap">
                                    <Run Text="{StaticResource IDS_MANUAL_CONTACTBOOK_LINE1}"/>
                                </TextBlock>
                                <TextBlock Style="{StaticResource PhoneTextNormalStyle}" Text=" "/>
                            </StackPanel>

                            <StackPanel>
                                <StackPanel Margin="12,0,0,0" Orientation="Horizontal">
                                    <UX:UXPathButton IconPath="{StaticResource PATH_ICON_CLEAN}" 
                                                     Width="36" Height="36" Padding="9"/>
                                    <TextBlock Style="{StaticResource PhoneTextTitle2Style}" 
                                               Text="{StaticResource IDS_MANUAL_CLEAN}"/>
                                </StackPanel>
                                <TextBlock Style="{StaticResource PhoneTextNormalStyle}" Text=" "/>
                            </StackPanel>

                            <StackPanel>
                                <StackPanel Margin="12,0,0,0" Orientation="Horizontal">
                                    <UX:UXPathButton IconPath="{StaticResource PATH_ICON_SELECTED}" 
                                                     Width="36" Height="36" Padding="9"/>
                                    <TextBlock Style="{StaticResource PhoneTextTitle2Style}" 
                                               Text="{StaticResource IDS_MANUAL_SELECTEDALL}"/>
                                </StackPanel>
                                <TextBlock Style="{StaticResource PhoneTextNormalStyle}" Text=" "/>
                            </StackPanel>

                            <StackPanel>
                                <StackPanel Margin="12,0,0,0" Orientation="Horizontal">
                                    <UX:UXPathButton IconPath="{StaticResource PATH_ICON_UNSELECTED}" 
                                                     Width="36" Height="36" Padding="9"/>
                                    <TextBlock Style="{StaticResource PhoneTextTitle2Style}" 
                                               Text="{StaticResource IDS_MANUAL_UNSELECTED}"/>
                                </StackPanel>
                                <TextBlock Style="{StaticResource PhoneTextNormalStyle}" Text=" "/>
                            </StackPanel>
                        </StackPanel>
                        
                    </ScrollViewer>
                </Grid>
            </controls:PivotItem>

            <controls:PivotItem Header="{StaticResource IDS_MANUAL_REPLY}">
				<Grid>
                    <ScrollViewer>
                        <StackPanel>
                            <StackPanel>
                                <TextBlock Style="{StaticResource PhoneTextNormalStyle}" 
                                           Text="{StaticResource IDS_MANUAL_REPLY_DESCRIPTION}" TextWrapping="Wrap"/>
                                <TextBlock Style="{StaticResource PhoneTextNormalStyle}" Text=" "/>
                            </StackPanel>
                            
                            <StackPanel>
                                <StackPanel Margin="12,0,0,0" Orientation="Horizontal">
                                    <UX:UXPathButton IconPath="{StaticResource PATH_ICON_DOWN}" 
                                                     Width="36" Height="36" Padding="9"/>
                                    <TextBlock Style="{StaticResource PhoneTextTitle2Style}" 
                                               Text="{StaticResource IDS_MANUAL_REPLY_LOADPREVIOUS}"/>
                                </StackPanel>
                                <TextBlock Style="{StaticResource PhoneTextNormalStyle}" TextWrapping="Wrap">
                                    <Run Text="{StaticResource IDS_MANUAL_REPLY_LOADPREVIOUS_LINE1}"/>
                                    <LineBreak/>
                                    <Run Text="{StaticResource IDS_MANUAL_REPLY_LOADPREVIOUS_LINE2}"/>
                                </TextBlock>
                                <TextBlock Style="{StaticResource PhoneTextNormalStyle}" Text=" "/>
                            </StackPanel>

                            <StackPanel>
                                <StackPanel Margin="12,0,0,0" Orientation="Horizontal">
                                    <UX:UXPathButton IconPath="{StaticResource PATH_ICON_MAIN_SEND}" 
                                                     Width="36" Height="36" Padding="8"/>
                                    <TextBlock Style="{StaticResource PhoneTextTitle2Style}" 
                                               Text="{StaticResource IDS_MANUAL_REPLY_DETAIL_REPLY}"/>
                                </StackPanel>
                                <TextBlock Style="{StaticResource PhoneTextNormalStyle}" TextWrapping="Wrap">
                                    <Run Text="{StaticResource IDS_MANUAL_REPLY_DETAIL_REPLY_LINE1}"/>
                                </TextBlock>
                                <TextBlock Style="{StaticResource PhoneTextNormalStyle}" Text=" "/>
                            </StackPanel>

                            <StackPanel>
                                <StackPanel Margin="12,0,0,0" Orientation="Horizontal">
                                    <UX:UXPathButton IconPath="{StaticResource PATH_ICON_DELETE}" 
                                                     Width="36" Height="36" Padding="9"/>
                                    <TextBlock Style="{StaticResource PhoneTextTitle2Style}" 
                                               Text="{StaticResource IDS_MANUAL_REPLY_DETAIL_DELETE}"/>
                                </StackPanel>
                                <TextBlock Style="{StaticResource PhoneTextNormalStyle}" Text=" "/>
                            </StackPanel>
                        </StackPanel>
                    </ScrollViewer>
                </Grid>
			</controls:PivotItem>
        </controls:Pivot>
    </Grid>
    
</phone:PhoneApplicationPage>